import { default as request, cloud } from '@/framework/utils/request'

/**
 * 新增监控设备数据
 */
export function addEquipment(data) {
  return request({
    url: `${cloud.videofusion}/videoEquipmentInfo/add`,
    method: 'post',
    data
  })
}

/**
 * 解析视频处理jar包
 */
export function analysisJar(data) {
  return request({
    url: `${cloud.videofusion}/videoJarInfo/analysis`,
    method: 'post',
    data
  })
}

/**
 * 查询视频处理class列表
 */
export function getJarClass() {
  return request({
    url: `${cloud.videofusion}/videoJarInfo/getJarClass`,
    method: 'get'
  })
}

/**
 * 分页查询监控设备信息
 */
export function getPageVideoEquipment(params) {
  return request({
    url: `${cloud.videofusion}/videoEquipmentInfo/getPageVideoEquipment`,
    method: 'get',
    params
  })
}

/**
 * 查询监控设备品牌名称列表
 */
export function getEquipmentName() {
  return request({
    url: `${cloud.videofusion}/videoEquipmentInfo/getEquipmentName`,
    method: 'get'
  })
}

/**
 * 修改监控设备数据
 */
export function editEquipment(data) {
  return request({
    url: `${cloud.videofusion}/videoEquipmentInfo/edit`,
    method: 'post',
    data
  })
}

/**
 * 删除监控设备数据
*/
export function delEquipment(data) {
  return request({
    url: `${cloud.videofusion}/videoEquipmentInfo/delete`,
    method: 'post',
    data
  })
}
